<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('关联考试')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exam_id" min="0" data-source="exam/index" class="form-control selectpage" name="row[exam_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('关联地区')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-region_id" data-rule="required" min="0"  placeholder="未选择则默认生效全国"  data-source="region/index" class="form-control selectpage" name="row[region_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx_group_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx_group_title" data-rule="required" class="form-control" name="row[wx_group_title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx_group_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx_group_name" data-rule="required" class="form-control" name="row[wx_group_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx_group_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-wx_group_image" data-rule="required" class="form-control" size="50" name="row[wx_group_image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-wx_group_image" class="btn btn-danger faupload" data-input-id="c-wx_group_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-wx_group_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-wx_group_image" class="btn btn-primary fachoose" data-input-id="c-wx_group_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-wx_group_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-wx_group_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('扫一扫标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx_group_scan_title" data-rule="required" class="form-control" name="row[wx_group_scan_title]" type="text"
                   value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('群规则标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx_group_rule_title" data-rule="required" class="form-control" name="row[wx_group_rule_title]" type="text"
                   value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx_group_rule')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="wx_group_rule_list" data-template="wx_group_rule_list_tpl">
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                </dd>
                <textarea name="wx_group_rule" class="form-control hide" cols="30"
                          rows="5"></textarea>
            </dl>
            <script type="text/html" id="wx_group_rule_list_tpl">
                <dd class="form-inline">
                    <input style="width: 418px;" type="text" name="row[<%=name%>][<%=index%>]"
                           class="form-control" value="<%=row%>" size="100">
                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span
                        class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="row[remark]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
